package com.example.demo.mycontroller;


import com.example.demo.enity.Bill;
import com.example.demo.enity.User;
import com.example.demo.mapper.BillListMapper;
import com.example.demo.mapper.UserMapper;
import com.example.demo.service.UserService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
public class MyController {

    @Autowired
    BillListMapper billListMapper;


    @RequestMapping("/test")
    public List<Bill> test() {
        Bill bill = new Bill();
        bill.setGoodsName("手机");
        bill.setSupplier("苹果");
//        bill.setIsPayment(1);


        List<Bill> billList = billListMapper.getBillListByWhere(bill);
        return billList;
    }


}
